{extend name="../../admin/view/full"}
{block name='content'}
<div class="iframe-pagination">
    <div class="layui-tab-content table-block">
        <table class="layui-table margin-top-5" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th>月份</th>
                <th>性别</th>
                <th>最小体重</th>
                <th>最大体重</th>
                <th>如厕次数</th>
                <th>添加时间</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key => $vo}
            <tr>
                <td>{$vo.month|default=''} 个月</td>
                <td>{$vo.gender == 1?'公':'母'}</td>
                <td>{$vo.min_weight|default=''} kg</td>
                <td>{$vo.max_weight|default=''} kg</td>
                <td>{$vo.toilet_times|default=''} 次</td>
                <td>{$vo.create_at|default=''}</td>
                <td class='text-left nowrap'>
                    <a  class="layui-btn layui-btn-sm layui-btn-xs" data-title="编辑数据"  data-width="80%" data-modal="{:url('edit_data')}?id={$vo.id}">编 辑</a>
                    <a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要删除吗？" data-action="{:url('remove_data')}" data-value="id#{$vo.id}">删 除</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
        <div class="" style="bottom:5px;right:10px;position: fixed;">
            <button type="button" data-modal='{:url("add_data")}?breed_id={$get.id}' data-width="80%" data-title="添加数据" class='layui-btn layui-btn-sm'>添加数据</button>
        </div>
    </div>
</div>
{/block}